#include<func.h>

void function(int signum)
{
    while(1)
    {        
        sleep(3);
        printf("i am sleeping\n");
    }
}

int main()
{
    signal(SIGINT,function);
    while(1);
    return 0;
}